package com.mytaobao.pojo.enums;

import lombok.val;

import java.util.Arrays;

public enum Season {
    SPRING("春天", "美丽"),
    SUMMER("夏天", "炎热"),
    AUTUMN("秋天", "丰收");
    private final String name;
    private final String desc;

    Season(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }
}

class TTTTT {
    public static void main(String[] args) {
        System.out.println(Season.SPRING);
        System.out.println(Arrays.toString(Season.values()));
        System.out.println(Season.class.getSuperclass());
        val values = Thread.State.values();
        System.out.println(Arrays.toString(values));
        System.out.println(Season.valueOf("SPRING"));
    }
}
